package com.mao.javabean;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setName("Mary");
        s1.setChinese(100);
        s1.setMath(90);
        System.out.println(s1.getName() + "的语文成绩是：" + s1.getChinese());
        System.out.println(s1.getName() + "的数学成绩是：" + s1.getMath());
        System.out.println(s1.getName() + "的总成绩是：" + (s1.getChinese() + s1.getMath()));
        System.out.println(s1.getName() + "的平均成绩是：" + (s1.getChinese() + s1.getMath())/2);
        System.out.println("=============");
        StudentOperator op = new StudentOperator();
        op.printAllScore(s1);
        op.printAverage(s1);
    }
}
